﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.Master" AutoEventWireup="true" CodeBehind="FormConInformacionTour.aspx.cs" Inherits="CondorTravelOperacionesWeb.Pages.TourOperaciones.FormConInformacionTour" %>
<%@ Register src="../../Controls/MenuVertical.ascx" tagname="MenuVertical" tagprefix="uc1" %>
<%@ Register src="../../Controls/UCMessageForm.ascx" tagname="UCMessageForm" tagprefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="ajaxToolkit" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Navegacion" runat="server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ColumnaIzquierda" runat="server">

    

<uc1:MenuVertical ID="MenuVertical1" runat="server" />

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="server">
<asp:Label ID="lbluser" runat="server" Text="Actualizar Informacion de Tours" Font-Size="X-Large" Font-Bold="true" EnableViewState="false"></asp:Label>
 <br />
 <br />
<uc2:UCMessageForm ID="UCMessageForm" runat="server" />
    <asp:tabcontainer ID="tbcModos" runat="server">
        <!-- Eventos -->
        <asp:TabPanel ID="tbpSeguimientoIntinerarios_1" runat="server" HeaderText="Eventos Extraordinarios">
            <HeaderTemplate>
                <img src="../../../Images/buttons/ico_list.gif"alt="" />&nbsp;Actualizar tours
            
</HeaderTemplate>
         
            
<ContentTemplate>       
        
            <!-- Busqueda-->
            

 <asp:Button ID="cmdNuevoTour" runat="server" Text="Nuevo Tour"  OnClick="cmdNuevoTour_Click"/>
<asp:Panel ID="pnlFiltro" runat="server" CssClass="TituloBusqueda">
<asp:Label ID="lblSearchTitulo" runat="server" Text="::Nuevo Tour"></asp:Label>
</asp:Panel>

 <asp:Panel ID="pnlFiltroContenido" runat="server" CssClass="AjaxPanelFatherContent" style="padding-top:5px;padding-bottom:5px;padding-left:10px;padding-right:10px">
 <% //Main Filter %>
 
 <% //Advanced Filter %>
   
   <!-- Advanced Search-->
<asp:Panel ID="description_HeaderPanel" runat="server" style="cursor: pointer;" >    

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
        CssClass="errorValidation" DisplayMode="List" ValidationGroup="as" />        

</asp:Panel>
<asp:Panel ID="Panel1" runat="server">

<table  class="advancedfilter" border="0" width="500px">
    <tr style="height:15px;">
        <td></td>
        <td  colspan="5">
            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="eventoextra" />
        </td>
            
    </tr>
    <tr style="height:15px;">
        <td></td>
        <td class="style4">Código Tour</td>
        <td class="style1"> 
            <asp:TextBox ID="txtCodigoTour" runat="server" CssClass="cssTextBox"  Enabled="False"
                maxlength="15" Width="120px" ValidationGroup="eventoextra" >0</asp:TextBox>
            
        </td>
        <td  class="cellhidden"></td>
        <td class="style2">&nbsp;</td>
        <td class="style3"> 
            &nbsp;</td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="style4">
            Fecha Tour</td>
        <td class="style1">
            <asp:TextBox ID="txtFechaTour" runat="server" CssClass="cssTextBox" maxlength="15"  
                Width="120px" ValidationGroup="eventoextra" Enabled="False"></asp:TextBox>
            
        </td>
        <td class="cellhidden">
            &nbsp;</td>
        <td class="style2">
            </td>
        <td class="style3">
            
        </td>
    </tr>
<tr style="height:15px;">
    <td></td>
    <td  class="style4">Paquete Turistico Programado</td>
    <td colspan="4">
         <asp:DropDownList ID="cboPaqueteProgramado" runat="server" Width="300px" 
             ValidationGroup="eventoextra" ControlToValidate="cboPaqueteProgramado" 
             AutoPostBack="True" 
             onselectedindexchanged="cboPaqueteProgramado_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1"  
        runat="server" ErrorMessage="El campo Paquete Programado es obligatorio" 
        ValidationGroup="eventoextra" Text="*" ControlToValidate="cboPaqueteProgramado" 
             InitialValue="0"></asp:RequiredFieldValidator>
    </td>

</tr>
<tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="style4">
            Desde</td>
        <td class="style1">
            <asp:TextBox ID="txtDesde" runat="server" CssClass="cssTextBox" maxlength="15"  
                Width="120px" ValidationGroup="eventoextra" Enabled="False"></asp:TextBox>
           
        </td>
        <td class="cellhidden">
            Hasta</td>
        <td class="style2">
         <asp:TextBox ID="txtHasta" runat="server" CssClass="cssTextBox" maxlength="15"  
                Width="120px" ValidationGroup="eventoextra" Enabled="False"></asp:TextBox>
           
            </td>
        <td class="style3">
            
        </td>
    </tr>
<tr style="height:15px;">
    <td></td>
    <td  class="style4">Nro turistas:</td>
    <td colspan="4">
          <asp:TextBox ID="txtNumTuristas" runat="server" CssClass="cssTextBox" maxlength="15"  
                Width="120px" ValidationGroup="eventoextra"></asp:TextBox>
           
            </td>
</tr>
<tr>
   <td></td>
    <td  class="style4">&nbsp;</td>
    <td colspan="4">
        &nbsp;</td>
</tr>
<tr>
<td></td>
  <td colspan="4" align="right">        
      <asp:Button ID="cmdAddProgramacion" runat="server" 
          Text="Agregar Programacion"   ValidationGroup="eventoextra" 
          onclick="cmdAddProgramacion_Click" />&nbsp;&nbsp;
  </td>   
  <td  class="style4">&nbsp;</td> 
</tr>
</table>
</asp:Panel>
  </asp:Panel>
 <!-- Advanced Search-->   

<%// Result Section %>&nbsp;<p align="right">

    <!-- Fin busqueda-->
       
            <asp:TabContainer ID="tbcModos_1" runat="server" CssClass="">
                <asp:TabPanel ID="tbpSeguimientoIntinerarios" runat="server" 
                    HeaderText="Seguimiento itinerarios">
                    <HeaderTemplate>
                        <img src="../../../Images/buttons/ico_list.gif"alt="" />
                        &nbsp;Detalle informacion de tours
                    </HeaderTemplate>
                    <ContentTemplate>
                    <asp:GridView  Width="70%" ID="gvList" DataKeyNames="detalleTour_ID" runat="server" 
    AutoGenerateColumns="False"     PageSize="100"
    EmptyDataText="No existe información para datos seleccionados" onrowdatabound="gvList_RowDataBound" 
        OnRowCommand="gvList_OnRowCommand" 
        onpageindexchanging="gvList_PageIndexChanging">
    <Columns>
        <asp:TemplateField HeaderText="Dia">
            <ItemTemplate>
                <asp:Label ID="lblDia" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tb_Detalle_PaqueteProgramado.dia") %>'></asp:Label>                
            </ItemTemplate>
        </asp:TemplateField> 
        <asp:TemplateField HeaderText="Fecha Prog.">
            <ItemTemplate>
                <asp:Label ID="lblFechaProg" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tb_Detalle_PaqueteProgramado.fechaProgramacion") %>'></asp:Label>                
            </ItemTemplate>
        </asp:TemplateField> 
        <asp:TemplateField HeaderText="Descripciones">
            <ItemTemplate>
                <asp:Label ID="lbldescription" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tb_Detalle_PaqueteProgramado.descripcion") %>'></asp:Label>                
            </ItemTemplate>
        </asp:TemplateField>
       <asp:TemplateField HeaderText="Agregar Recursos">
            <ItemTemplate>
                <asp:LinkButton ID="hplEditar" runat="server" Text="Requerimiento Guia" CommandName="requerimientoGuia" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "detalleTour_ID") %>'></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>        
               <asp:TemplateField HeaderText="Agregar Recursos">
            <ItemTemplate>
                <asp:LinkButton ID="hplEditar2" runat="server" Text="Requerimiento Traslado" CommandName="requerimientoTraslado" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "detalleTour_ID") %>'></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>        

   </Columns>
    <HeaderStyle HorizontalAlign="Right" />
   
</asp:GridView>

                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tbpEvento" runat="server" HeaderText="Requerimientos Guias" 
                    Visible="False">
                    <HeaderTemplate>
                        <img src="../../../Images/buttons/ico_add.gif"alt="" />
                        &nbsp;&nbsp;Requerimiento Guias
                    </HeaderTemplate>
                    <ContentTemplate>

                    <table  class="advancedfilter" border="0" width="650px">
    <tr style="height:15px;">
        <td></td>
        <td  colspan="5">
            <asp:ValidationSummary ID="vsIncidente" runat="server" ValidationGroup="eventoextra" />
        </td>
            
    </tr>
    <tr style="height:15px;">
        <td></td>
        <td class="style4">Tipo</td>
        <td class="style1"> 
                    <asp:DropDownList ID="cboTipoGuia" runat="server" Width="200px" ValidationGroup="guiaval">
                         </asp:DropDownList>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="guiaval" ControlToValidate="cboTipoGuia" ErrorMessage="El tipo de guia es obligatorio" Text="*"></asp:RequiredFieldValidator>
        </td>
        <td  class="cellhidden"></td>
        <td class="style2">&nbsp;</td>
        <td class="style3"> 
            &nbsp;</td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="style4">
            Cantidad</td>
        <td class="style1">
            <asp:TextBox ID="txtCantidad" runat="server" CssClass="cssTextBox" 
                Enabled="true" maxlength="15"  Width="120px" ValidationGroup="guiaval"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCantidad" ErrorMessage="La cantidad es obligatoria" Text="*" ValidationGroup="guiaval" ></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" Type="Integer"
            runat="server" ErrorMessage="El campo Cantidad debe ser numerico" ValidationGroup="guiaval"  ControlToValidate="txtCantidad" Operator="DataTypeCheck"></asp:CompareValidator>
        </td>
        <td class="cellhidden">
            &nbsp;</td>
        <td class="style2">
            </td>
        <td class="style3">
            
        </td>
    </tr>

<tr>
<td></td>
  <td colspan=5 align="right">        
      <asp:Button ID="cmdNuevoGuia" runat="server" Text="Agregar"    ValidationGroup="guiaval"  OnClick="cmdNuevoGuia_Onclick" />&nbsp;&nbsp;
  </td>    
</tr>
</table>
                        <asp:HiddenField ID="hCodigoDetalleTour" runat="server" />
<br />
  <asp:GridView  Width="400px" ID="gvTipoGuia" DataKeyNames="recursoSolicitado_ID" runat="server" 
    AutoGenerateColumns="False"     PageSize="100"
    EmptyDataText="No existe información para datos seleccionados" 
    OnRowCommand="gvTipoGuia_OnRowCommand">
    <Columns>
        <asp:TemplateField HeaderText="Tipo Guia">
            <ItemTemplate>
                <asp:Label ID="lblDia" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tb_TipoGuia.nombre") %>'></asp:Label>                
            </ItemTemplate>
        </asp:TemplateField> 
        <asp:TemplateField HeaderText="Cantidad">
            <ItemTemplate>
                <asp:Label ID="lbCantidad" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "cantidad") %>'></asp:Label>                
            </ItemTemplate>
        </asp:TemplateField> 

       <asp:TemplateField HeaderText="Seleccionar">
            <ItemTemplate>
                <asp:LinkButton ID="hplEditar1" runat="server" Text="Eliminar" CommandName="eliminarGuia" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "recursoSolicitado_ID") %>'></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>        
   </Columns>
    <HeaderStyle HorizontalAlign="Right" />
   
</asp:GridView>

                    </ContentTemplate>
                </asp:TabPanel>
                 <asp:TabPanel ID="tbpEvento_1" runat="server" HeaderText="Nuevo Evento" 
                    Visible="False">
       <HeaderTemplate>
            <img src="../../../Images/buttons/ico_add.gif"alt="" />&nbsp;&nbsp;Actualizar Traslado
        
        </HeaderTemplate>
        
        
        <ContentTemplate>
            <table  class="advancedfilter" border="0" width="650px">
    <tr style="height:15px;">
        <td></td>
        <td  colspan="5">
            <asp:ValidationSummary ID="ValidationSummary3" runat="server" ValidationGroup="eventoextra" />
        </td>
            
    </tr>
    <tr style="height:15px;">
        <td></td>
        <td class="style4">Tipo</td>
        <td class="style1"> 
                    <asp:DropDownList ID="cboTipoTransporte" runat="server" Width="200px" ValidationGroup="transporteval">
                         </asp:DropDownList>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ValidationGroup="transporteval" ControlToValidate="cboTipoTransporte" ErrorMessage="El Tipo de transporte es obligatorio" Text="*"></asp:RequiredFieldValidator>
        </td>
        <td  class="cellhidden"></td>
        <td class="style2">&nbsp;</td>
        <td class="style3"> 
            &nbsp;</td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="style4">
            Cantidad</td>
        <td class="style1">
            <asp:TextBox ID="txtCantidadTransporte" runat="server" CssClass="cssTextBox" 
                Enabled="true" maxlength="15"  Width="120px" ValidationGroup="transporteval"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCantidadTransporte" ErrorMessage="La cantidad es obligatoria" Text="*" ValidationGroup="transporteval" ></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator2" Type="Integer"
            runat="server" ErrorMessage="El campo Cantidad debe ser numerico" ValidationGroup="transporteval"  ControlToValidate="txtCantidadTransporte" Operator="DataTypeCheck"></asp:CompareValidator>
        </td>
        <td class="cellhidden">
            &nbsp;</td>
        <td class="style2">
            </td>
        <td class="style3">
            
        </td>
    </tr>

<tr>
<td></td>
  <td colspan=5 align="right">        
      <asp:Button ID="Button1" runat="server" Text="Agregar"    ValidationGroup="transporteval"  OnClick="cmdNuevoTransporte_Onclick" />&nbsp;&nbsp;
  </td>    
</tr>
</table>
<br />
  <asp:GridView  Width="400px" ID="gvTipoTransporte" DataKeyNames="recursoSolicitado_ID" runat="server" 
    AutoGenerateColumns="False"     PageSize="100"
    EmptyDataText="No existe información para datos seleccionados" 
    OnRowCommand="gvTipoTransporte_OnRowCommand" >
    <Columns>
        <asp:TemplateField HeaderText="Tipo Transporte">
            <ItemTemplate>
                <asp:Label ID="lblDia" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Tb_TipoTransporte.descripcion") %>'></asp:Label>                
            </ItemTemplate>
        </asp:TemplateField> 
        <asp:TemplateField HeaderText="Cantidad">
            <ItemTemplate>
                <asp:Label ID="lbCantidad" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "cantidad") %>'></asp:Label>                
            </ItemTemplate>
        </asp:TemplateField> 

       <asp:TemplateField HeaderText="Seleccionar">
            <ItemTemplate>
                <asp:LinkButton ID="hplEliminar" runat="server" Text="Eliminar" CommandName="eliminarTransporte" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "recursoSolicitado_ID") %>'></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>        
   </Columns>
    <HeaderStyle HorizontalAlign="Right" />
   
</asp:GridView>

</ContentTemplate>       
    





    </asp:TabPanel>      
            </asp:TabContainer>

            <br />

</ContentTemplate>            


        
</asp:TabPanel>
     
        
     
         
       
     </asp:tabcontainer>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="RightColumn" runat="server">

</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContenidoOculto" runat="server">
</asp:Content>
